<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">


    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            简易事故匹配
            <small>已完成匹配记录</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="/dashboard"><i class="fa fa-dashboard"></i> Home</a></li>
            <li class="active">事故定位</li>
        </ol>
    </section>


    <!-- Main content -->
    <section class="content">
        <div id="layer_img" style="display:none;position:absolute;z-index:1;"></div>

        <?= $pagination ?>
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <!-- /.box-header -->
                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <tr>
                                <th>事故单号</th>
                                <th>定位时间</th>
                                <th>定位人员</th>
                                <th>发生时间</th>
                                <th>录入人员</th>
                                <th>操作</th>
                            </tr>

                            <?php foreach ($records as $record): ?>
                                <tr>
                                    <td><a href="/record/detail/<?=$record["SA_SaNum"]?>" target="_blank"><?=$record["SA_SaNum"]?></a></td>
                                    <td><?= $record["ts"] ?></td>
                                    <td><?= $record["department"] ?> - <?= $record["name"] ?></td>
                                    <td><?= $record["SA_HTime"] ?></td>
                                    <td><?= $record["SA_Dtm"] ?> - <?= $record["SA_Hps"] ?></td>
                                    <td>
                                        <a class="btn  btn-xs btn-primary btn_show_map_img"
                                           href="http://api.map.baidu.com/staticimage?width=300&height=300&center=<?= $record["lng"] ?>,<?= $record["lat"] ?>&zoom=17&markers=<?= $record["lng"] ?>,<?= $record["lat"] ?>&markerStyles=l"
                                           target="_blank">显示定位位置</a>
                                    </td>
                                </tr>
                            <?php endforeach; ?>

                        </table>
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
        </div>
    </section>

</div>
<!-- /.content-wrapper -->